import request from '@/utils/request'

// 查询交易记录(包含支付充值记录)列表
export function listDeal_record(query) {
  return request({
    url: '/manager/dealRecord/list',
    method: 'get',
    params: query
  })
}

// 查询交易记录(包含支付充值记录)详细
export function getDeal_record(id) {
  return request({
    url: '/manager/dealRecord/' + id,
    method: 'get'
  })
}

// 新增交易记录(包含支付充值记录)
export function addDeal_record(data) {
  return request({
    url: '/manager/DealRecord/',
    method: 'post',
    data: data
  })
}

// 修改交易记录(包含支付充值记录)
export function updateDeal_record(data) {
  return request({
    url: '/manager/dealRecord/',
    method: 'put',
    data: data
  })
}

// 删除交易记录(包含支付充值记录)
export function delDeal_record(id) {
  return request({
    url: '/manager/dealRecord/' + id,
    method: 'delete'
  })
}

// 导出交易记录(包含支付充值记录)
export function exportDeal_record(query) {
  return request({
    url: '/manager/dealRecord/export',
    method: 'get',
    params: query
  })
}
